home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Aventura / chichi.swf / scripts / frame_235 / PlaceObject2_282_587 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2008-09-26  |  476 b   |  20 lines

  1. onClipEvent(enterFrame){
  2.    if(this._y <= 561 && _parent.life > 7 && _global.gameover == 0)
  3.    {
  4.       this._y += 6;
  5.    }
  6.    else
  7.    {
  8.       this._x = random(26) * 10 + 30;
  9.       this._y = - random(500) - 500;
  10.    }
  11.    if(this.hitTest(_parent.drag) and _global.die == false)
  12.    {
  13.       _parent.drag.gotoAndPlay("die");
  14.       _parent.shak.gotoAndPlay(1);
  15.       this._x = random(26) * 10 + 30;
  16.       this._y = - random(500);
  17.       _parent.score -= 100;
  18.    }
  19. }
  20.